mod tokenizer;

use std::env;
use std::fs;
use std::process;

fn main() {
    let args: Vec<String> = env::args().collect();
    if args.len() < 2 {
        eprintln!("Usage: {} <file_path>", args[0]);
        process::exit(1);
    }

    let path = &args[1];
    let content = fs::read_to_string(path).expect("fail to read file");
    tokenizer::tokenize(&content);
}
